/* 编写4种按钮的样式 */

/* primary warning danger success */

button {
    border: 0;
    outline: none;
    height: 40px;
    border-radius: 5px;
    width: 80px;
    cursor: pointer;
    background-color: #fff;
    /* border: 1px solid #efeded; */
}

button[disabled] {
    background: #ccc !important;
}

button[disabled]:hover {
    cursor: not-allowed;
    border: 0 !important;
    box-shadow: none;
}

button[disabled]:active {
    opacity: 1;
}

button:hover {
    /* border: 1px solid rgb(171, 63, 63); */
    box-shadow: 0px 0px 10px rgb(171, 109, 109);
}

button:active {
    opacity: .7;
}

button[type='primary'] {
    background-color: #409eff;
    color: #fff;
}

button[type='warning'] {
    background-color: #e6a23c;
    color: #fff;
}

button[type='success'] {
    background-color: #67c23a;
    color: #fff;
}

button[type='danger'] {
    background-color: #f56c6c;
    color: #fff;
}